package com.hang.gymmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hang.gymmanager.common.BasePageReq;
import com.hang.gymmanager.entity.ActivityEntity;
import com.hang.gymmanager.req.AddActivityReq;
import com.hang.gymmanager.req.BuyActivityReq;
import com.hang.gymmanager.req.PageActivityReq;
import com.hang.gymmanager.req.UpdateActivityReq;
import com.hang.gymmanager.res.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ActivityService extends IService<ActivityEntity> {
    Integer addActivity(AddActivityReq req);

    Page<PageActivityRes> allActivity(PageActivityReq req);

    void deleteActivity(Integer activityId);

    ActivityDetailRes detail(Integer actId);

    Page<UserPlacePageRes> userActivityPage(BasePageReq req);

    UserActivityDetailRes userActivityDetail(Integer activityId);

    String buy(BuyActivityReq req);

    List<AddActPlaceRes> placeRecord();

    String uploadPic(MultipartFile file);

    void updateActivity(UpdateActivityReq req);
}
